<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	我是websocket.html页面
</body>
<script type="text/javascript">
	var socket = new WebSocket("ws://localhost:8080/demo/messages/websocket"); 
	socket.onopen = function(){
		log("*** websocket opened ***")
		socket.send("后台服务器，websocket与前段的连接已正常建立。")
	}
	
	
	
	function log(str){
		window.console.log(str);
	}
	
</script>
</html>